package com.qdlc.p2p.dal.dao.impl;

import org.springframework.stereotype.Repository;

import com.qdlc.p2p.dal.common.dao.jpa.BaseDaoImpl;
import com.qdlc.p2p.dal.common.model.jpa.QueryParam;
import com.qdlc.p2p.dal.dao.VerifyLogDao;
import com.qdlc.p2p.dal.dto.VerifyLog;

@Repository("verifyLogDao")
public class VerifyLogDaoImpl extends BaseDaoImpl<VerifyLog> implements VerifyLogDao {

	@Override
	public VerifyLog findByType(long fid, String type, int verifyType) {
		QueryParam param = QueryParam.getInstance().addParam("fid", fid).addParam("type", type)
				.addParam("verifyType", verifyType);
		return findByCriteriaForUnique(param);
	}

}
